from sklearn.datasets import load_iris
from sklearn.naive_bayes import GaussianNB
from sklearn.model_selection import train_test_split

data=load_iris()
x=data.data
y=data.target
train_x,test_x,train_y,test_y=train_test_split(x,y)

model=GaussianNB()
model.fit(train_x,train_y)
print(model.score(test_x,test_y))
print(x)